package cn.rocksolid.sport.security.service;

import cn.rocksolid.sport.security.entity.RoleEntity;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Collection;

/**
 * System Role service
 *
 * @author Axl Zhao
 * @email axl.zhao@163.com
 */
public interface RoleService extends IService<RoleEntity> {

  IPage<RoleEntity> paging(final IPage<RoleEntity> page, final JSONObject cond);

  RoleEntity get(final String id);

  void create(final RoleEntity roleEntity);

  void modify(final RoleEntity roleEntity);

  void removes(final Collection<String> ids);

  void refreshMenus(final String id, final Collection<String> menuIds);
}
